package vista;
import java.awt.BorderLayout;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.JTextField;

import javax.swing.WindowConstants;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VentanaFacturaCompra extends javax.swing.JFrame {

	{
		//Set Look & Feel
		try {
			javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName());
		} catch(Exception e) {
			e.printStackTrace();
		}
	}

	private JPanel panVentanaFacturaCompra;
	private JLabel lblFechaCompra;
	private JLabel lblNumeroFacturaCompra;
	private JTable jTable1;
	private JTextField txtProveedor;
	private JLabel lblProveedor;
	private JButton btnRegistrarDetalle;
	private JButton btnSalirCompra;
	private JButton btnCancelarCompra;
	private JButton btnRegistrarCompra;
	private JTextField txtNumeroFacturaCompra;
	private JTextField txtFechaCompra;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				VentanaFacturaCompra inst = new VentanaFacturaCompra();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public VentanaFacturaCompra() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			this.setTitle("Compra");
			{
				panVentanaFacturaCompra = new JPanel();
				getContentPane().add(panVentanaFacturaCompra, "Center");
				panVentanaFacturaCompra.setBounds(0, 0, 618, 505);
				panVentanaFacturaCompra.setLayout(null);
				{
					lblFechaCompra = new JLabel();
					panVentanaFacturaCompra.add(lblFechaCompra);
					lblFechaCompra.setText("Fecha:");
					lblFechaCompra.setBounds(379, 73, 46, 17);
				}
				{
					lblNumeroFacturaCompra = new JLabel();
					panVentanaFacturaCompra.add(lblNumeroFacturaCompra);
					lblNumeroFacturaCompra.setText("N° Factura:");
					lblNumeroFacturaCompra.setBounds(345, 27, 80, 17);
				}
				{
					txtFechaCompra = new JTextField();
					panVentanaFacturaCompra.add(txtFechaCompra);
					txtFechaCompra.setBounds(437, 68, 94, 27);
				}
				{
					txtNumeroFacturaCompra = new JTextField();
					panVentanaFacturaCompra.add(txtNumeroFacturaCompra);
					txtNumeroFacturaCompra.setBounds(437, 22, 94, 27);
				}
				{
					btnRegistrarCompra = new JButton();
					panVentanaFacturaCompra.add(btnRegistrarCompra);
					btnRegistrarCompra.setText("Registrar");
					btnRegistrarCompra.setBounds(188, 431, 74, 29);
				}
				{
					btnCancelarCompra = new JButton();
					panVentanaFacturaCompra.add(btnCancelarCompra);
					btnCancelarCompra.setText("Cancelar");
					btnCancelarCompra.setBounds(293, 431, 74, 29);
				}
				{
					btnSalirCompra = new JButton();
					panVentanaFacturaCompra.add(btnSalirCompra);
					btnSalirCompra.setText("Salir");
					btnSalirCompra.setBounds(402, 431, 41, 29);
				}
				{
					btnRegistrarDetalle = new JButton();
					panVentanaFacturaCompra.add(btnRegistrarDetalle);
					btnRegistrarDetalle.setText("Registrar Detalle de Compra");
					btnRegistrarDetalle.setBounds(220, 172, 223, 29);
				}
				{
					lblProveedor = new JLabel();
					panVentanaFacturaCompra.add(lblProveedor);
					lblProveedor.setText("Proveedor:");
					lblProveedor.setBounds(61, 119, 77, 17);
				}
				{
					txtProveedor = new JTextField();
					panVentanaFacturaCompra.add(txtProveedor);
					txtProveedor.setBounds(159, 114, 372, 27);
				}
				{
					TableModel jTable1Model = 
							new DefaultTableModel(
									new String[][] { { "One", "Two" }, { "Three", "Four" } },
									new String[] { "Column 1", "Column 2" });
					jTable1 = new JTable();
					panVentanaFacturaCompra.add(jTable1);
					jTable1.setModel(jTable1Model);
					jTable1.setBounds(68, 233, 483, 164);
				}
			}
			pack();
			this.setSize(624, 547);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

}
